package com.xx.sg.dbw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("facility_air_station")
public class AirStation {


    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    public String id;

    @TableField("name")
    private String name;

    @TableField("longitude")
    private String longitude;

    @TableField("latitude")
    private String latitude;

    @TableField("manager")
    private String manager;

    @TableField("phone")
    private String phone;

    @TableField("location")
    private String location;

    @TableField("build_year")
    private String buildYear;

    @TableField("area")
    private String area;

    @TableField("patrol_area")
    private String patrolArea;

    @TableField("patrol_line")
    private String patrolLine;

    @TableField("air_num")
    private String airNum;

    @TableField("runway")
    private String runway;

    @TableField("people")
    private String people;

    @TableField("remark")
    private String remark;

    @TableField("create_by")
    private String createBy;

    @TableField("create_name")
    private String createName;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_name")
    private String updateName;

    @TableField("create_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createDate;

    @TableField("update_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateDate;

    @TableField("region_id")
    private String regionId;

    @TableField("delete_flag")
    private Integer deleteFlag;

    @TableField("version")
    private Integer version;
}
